package com.miao.entity;

import com.miao.utils.ExcelImport;
import lombok.Data;

/**
 * Description:
 */
@Data
public class User {

    //获取行号
    private int rowNum;

    @ExcelImport(value = "姓名",unique = true)
    private String name;

    @ExcelImport(value = "年龄",unique = true)
    private Integer age;

    @ExcelImport(value = "性别",kv = "1-男;2-女")
    private Integer sex;

    @ExcelImport("电话")
    private String phone;

    @ExcelImport("城市")
    private String city;

    @ExcelImport(value = "头像",maxLength = 1000)
    private String avatarUrl;

    //获取对象原始数据 （命名必须是rowData，和utils中有关）
    private String rowData;

    //错误提示
    private String rowTips;
}
